package net.gzw1993.runmate.bean;

import java.io.Serializable;
import java.util.List;

/**
 * 活动页面对应的实体类
 * 在线活动和附近活动的数据结构都是相同的，用这一个实体类就可以
 * Created by guoziwei on 2015/8/17.
 */
public class ActiveInfo implements Serializable {

    /**
     * content : [{"activityUrl":null,"activityLable":"ACTIVITY","activityState":"ACTIVITY_END","endTime":1439694000000,"headName":"\"First 5km Run\" 挑战人生第一个5公里","id":"d90ac160374511e5a8b800163e0221a7","startTime":1439685000000,"adress":"成都锦城湖","joined":false,"ordered":2,"headImage":"http://7tebi3.com1.z0.glb.clouddn.com/d90ac160374511e5a8b800163e0221a7head1438320884802","joinNum":393,"activityType":"ACTIVITY_SIGN_UP","collect":false},{"activityUrl":null,"activityLable":"ACTIVITY","activityState":"ACTIVITY_STARTED_SIGN_UP","endTime":1449936000000,"headName":"50KM=2万元 跑量换海边别墅/公寓！","id":"087b654036a011e5ad9700163e0221a7","startTime":1438358400000,"adress":"任意地点","joined":false,"ordered":0,"headImage":"http://7tebi3.com1.z0.glb.clouddn.com/087b654036a011e5ad9700163e0221a7head1438251355859","joinNum":52,"activityType":"ACTIVITY_SIGN_UP","collect":false},{"activityUrl":null,"activityLable":"ACTIVITY_CHALLENGE","activityState":"ACTIVITY_STARTED_SIGN_UP","endTime":1439827200000,"headName":"5个张掖马拉松免费名额 速抢！","id":"f5fef1c0344211e5993200163e0221a7","startTime":1438657200000,"adress":"任意地点","joined":false,"ordered":0,"headImage":"http://7tebi3.com1.z0.glb.clouddn.com/f5fef1c0344211e5993200163e0221a7head1438081097349","joinNum":36,"activityType":"ACTIVITY_SIGN_UP","collect":false}]
     * sort : null
     * numberOfElements : 3
     * last : true
     * totalElements : 3
     * number : 0
     * first : true
     * totalPages : 1
     * size : 1000
     */
    private List<Content> content;
    private String sort;
    private int numberOfElements;
    private boolean last;
    private int totalElements;
    private int number;
    private boolean first;
    private int totalPages;
    private int size;

    public void setContent(List<Content> content) {
        this.content = content;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public void setNumberOfElements(int numberOfElements) {
        this.numberOfElements = numberOfElements;
    }

    public void setLast(boolean last) {
        this.last = last;
    }

    public void setTotalElements(int totalElements) {
        this.totalElements = totalElements;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public void setFirst(boolean first) {
        this.first = first;
    }

    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public List<Content> getContent() {
        return content;
    }

    public String getSort() {
        return sort;
    }

    public int getNumberOfElements() {
        return numberOfElements;
    }

    public boolean isLast() {
        return last;
    }

    public int getTotalElements() {
        return totalElements;
    }

    public int getNumber() {
        return number;
    }

    public boolean isFirst() {
        return first;
    }

    public int getTotalPages() {
        return totalPages;
    }

    public int getSize() {
        return size;
    }

    @Override
    public String toString() {
        return "ActiveInfo{" +
                "content=" + content +
                ", sort='" + sort + '\'' +
                ", numberOfElements=" + numberOfElements +
                ", last=" + last +
                ", totalElements=" + totalElements +
                ", number=" + number +
                ", first=" + first +
                ", totalPages=" + totalPages +
                ", size=" + size +
                '}';
    }
}
